<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<%@include file="../common/selfCss.jsp"%>
<script type="text/javascript">
function deleteRoomPic(picId,auctionId){
	$.post("/misc/index/deleteAuctionPic.htm", {
		picId :picId,
		auctionId:auctionId
	},function(data){
		if(data=="success"){
			alert("已删除,请刷新");
			//window.opener=null;
			window.open('','_self');
		}
		if(data=="error"){
			alert("删除失败了。");
		}
	});
}
function updatePic(identifier){
	$('#updateContent').load("/misc/artPic/updateArtPicWeb.htm?identifier="+identifier);
}
</script>
	<table width="80%" class="def_t" id="tab" border="1" cellpadding="0" cellspacing="0">
		<tr>
			<td style="width: 150px">图片-1：</td>
			<td style="width: 150px">图片-2：</td>
			<td style="width: 150px">图片-3：</td>
			<td style="width: 150px">图片-4：</td>
			<td style="width: 150px">图片-5：</td>
			<td>标题：</td>
			<td>作者：</td>
			<td>尺寸：</td>
			<td>材料：</td>
			<td>描述：</td>
			<td>价格：</td>
			<td>年代：</td>
			<td >操作</td>
		</tr>
		<c:forEach items="${auctionPicList }" var="list">
			<tr>
			<td> <img alt="" src="${list.artPic.imagePath }_100x100"> </td>
			<td><img alt="" src="${list.artPic.imagePath2 }_100x100"> </td>
			<td><img alt="" src="${list.artPic.imagePath3 }_100x100"> </td>
			<td><img alt="" src="${list.artPic.imagePath4}_100x100"> </td>
			<td><img alt="" src="${list.artPic.imagePath5 }_100x100"> </td>
			<td>${list.artPic.title }</td>
			<td>${list.artPic.painter}</td>
			<td>${list.artPic.artSize}</td>
			<td>${list.artPic.material}</td>
			<td>${list.artPic.content}</td>
			<td>${list.artPic.price}</td>
			<td>${list.artPic.years}</td>
			<td><a href="#" onclick="deleteRoomPic('${list.picId}','${list.auctionId}')">删除</a> <a href="#" onclick="updatePic('${list.picId}')">更新</a>
			</td>
		</tr>
		</c:forEach>
		
	</table>
	<div id="updateContent"> </div>
</body>
